﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ProjectStorageLib.User;

public partial class User_MyProjects : System.Web.UI.Page
{
    protected void Page_PreInit(object sender, EventArgs e)
    {
        UserProcessor proc = new UserProcessor();
        if (proc.IsUserAdmin(Security.GetCurrentUserID()) == true)
            MasterPageFile = "~/Administrator/Admin.master";
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        m_ctrlProjectList.ProjectFilter = new ProjectStorageLib.Project.ProjectFilter() { 
            UserID = Security.GetCurrentUserID()
        };

        
    }

    protected override void OnPreRender(EventArgs e)
    {
        this.DataBind();
        base.OnPreRender(e);
    }
}